<html>
<head><meta charset="utf-8"><title>Building rustc with extra flags to the C/C++ compiler · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Building.20rustc.20with.20extra.20flags.20to.20the.20C.2FC.2B.2B.20compiler.html">Building rustc with extra flags to the C/C++ compiler</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="200312112"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Building%20rustc%20with%20extra%20flags%20to%20the%20C/C%2B%2B%20compiler/near/200312112" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mike Hommey <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Building.20rustc.20with.20extra.20flags.20to.20the.20C.2FC.2B.2B.20compiler.html#200312112">(Jun 10 2020 at 01:48)</a>:</h4>
<p>How do you pass extra flags for the C/C++ compiler to pass during the rustc build for a specific target? (I tried C{,XX}FLAGS_$TARGET, didn't seem to work)</p>



<a name="200312515"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Building%20rustc%20with%20extra%20flags%20to%20the%20C/C%2B%2B%20compiler/near/200312515" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Building.20rustc.20with.20extra.20flags.20to.20the.20C.2FC.2B.2B.20compiler.html#200312515">(Jun 10 2020 at 01:56)</a>:</h4>
<p><span class="user-mention" data-user-id="220510">@Mike Hommey</span> Where is the c compiler getting invoked?</p>



<a name="200312547"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Building%20rustc%20with%20extra%20flags%20to%20the%20C/C%2B%2B%20compiler/near/200312547" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mike Hommey <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Building.20rustc.20with.20extra.20flags.20to.20the.20C.2FC.2B.2B.20compiler.html#200312547">(Jun 10 2020 at 01:57)</a>:</h4>
<p>when building std, apparently (cross compiling)</p>



<a name="200312599"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Building%20rustc%20with%20extra%20flags%20to%20the%20C/C%2B%2B%20compiler/near/200312599" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mike Hommey <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Building.20rustc.20with.20extra.20flags.20to.20the.20C.2FC.2B.2B.20compiler.html#200312599">(Jun 10 2020 at 01:58)</a>:</h4>
<p>I'm trying a compiler wrapper</p>



<a name="200312612"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Building%20rustc%20with%20extra%20flags%20to%20the%20C/C%2B%2B%20compiler/near/200312612" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Aaron Hill <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Building.20rustc.20with.20extra.20flags.20to.20the.20C.2FC.2B.2B.20compiler.html#200312612">(Jun 10 2020 at 01:58)</a>:</h4>
<p>is this the LLVM build, or something else?</p>



<a name="200312617"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Building%20rustc%20with%20extra%20flags%20to%20the%20C/C%2B%2B%20compiler/near/200312617" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mike Hommey <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Building.20rustc.20with.20extra.20flags.20to.20the.20C.2FC.2B.2B.20compiler.html#200312617">(Jun 10 2020 at 01:58)</a>:</h4>
<p>Also found <a href="https://github.com/rust-lang/rust/issues/38212">https://github.com/rust-lang/rust/issues/38212</a></p>



<a name="200312643"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Building%20rustc%20with%20extra%20flags%20to%20the%20C/C%2B%2B%20compiler/near/200312643" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mike Hommey <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Building.20rustc.20with.20extra.20flags.20to.20the.20C.2FC.2B.2B.20compiler.html#200312643">(Jun 10 2020 at 01:59)</a>:</h4>
<p>compiler_builtins, it looks like</p>



<a name="200312826"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/Building%20rustc%20with%20extra%20flags%20to%20the%20C/C%2B%2B%20compiler/near/200312826" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Mike Hommey <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/Building.20rustc.20with.20extra.20flags.20to.20the.20C.2FC.2B.2B.20compiler.html#200312826">(Jun 10 2020 at 02:02)</a>:</h4>
<p>got further with a compiler wrapper.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>